package com.hgy.carsb.entity;

import lombok.Data;

@Data
public class EveryMonthData {
    private String january = "0";
    private String february = "0";
    private String march = "0";
    private String april = "0";
    private String may = "0";
    private String june = "0";
    private String july = "0";
    private String august = "0";
    private String september = "0";
    private String october = "0";
    private String november = "0";
    private String december = "0";

    public void set(String sum, int month){
        switch (month){
            case 1:
                january = sum;
                break;
            case 2:
                february = sum;
                break;
            case 3:
                march = sum;
                break;
            case 4:
                april = sum;
                break;
            case 5:
                may = sum;
                break;
            case 6:
                june = sum;
                break;
            case 7:
                july = sum;
                break;
            case 8:
                august = sum;
                break;
            case 9:
                september = sum;
                break;
            case 10:
                october = sum;
                break;
            case 11:
                november = sum;
                break;
            case 12:
                december = sum;
                break;
        }
    }
}
